{include file="./headStart.tpl"}
{include file="./headEnd.tpl"}
<head>
{literal}
<script type="text/javascript">
function changeValue()
{
  var setValue = "";
  $("#image").hide();
  $("#imgFile").val(setValue);
}

function deletechecked()
{
	var answer = confirm("Delete Selected Recored ?")
	if (answer)
	{
	  document.messages.submit();
	}
	return false;
} 
</script>
{/literal}
</head>
<form name="frmTech" action="{$smarty.server.PHP_SELF}" id="frmTech" method="post" enctype="multipart/form-data">
<input type="hidden" name="technicianId" value="{$technicianId}" />  
<table align="center" border="1" cellpadding="2" cellspacing="1" >
<tr>
  <td align="center" class="table1" colspan="4">Employee Entry</td>
</tr>
<tr>
  <td align="left" class="table2">First Name<font color="red"> *</font> :</td>
  <td class="table2"><input class="validate[required]" type="text" name="firstName" id="firstName" value="{$firstName}" title=" please enter First Name"></td>
  <td align="left" class="table2">Last Name :</td>
  <td class="table2"><input type="text" name="lastName" id="lastName" value="{$lastName}"></td>
</tr>
<tr>
  <td align="left" class="table2">Address<font color="red"> *</font> :</td>
  <td class="table2"><textarea class="validate[required,length[6,200]] text-input" name="address" rows="3" cols="16">{$address}</textarea></td>
  <td align="left" class="table2">City :</td>
  <td class="table2"><input type="text" name="city" id="city" value="{$city}"></td>
</tr>
<tr>
  <td align="left" class="table2">Mobile1<font color="red"> *</font> :</td>
  <td class="table2"><input class="validate[required]" type="text" name="mobile1" id="mobile1" value="{$mobile1}"></td>
  <td align="left" class="table2">Mobile2 :</td>
  <td class="table2"><input type="text" name="mobile2" id="mobile2" value="{$mobile2}"></td>
</tr>
<tr>
  <td align="left" class="table2">Phone:</td>
  <td class="table2"><input type="text" name="phone" id="phone" value="{$phone}"></td>
  <td align="left" class="table2">Email :</td>
  <td class="table2"><input type="email" name="email" id="email" value="{$email}"></td>
</tr>
<tr>
	<td align="left" class="table2">Image:</td>
	<td class="table2">{if $image != ""}<div id="image">{$image}<img src="./images/deleteIcon.png" height="15" width="15" onclick="changeValue()" /></div>{/if}</td>
	<input type="hidden" name="imgFile" id="imgFile" value="{$image}">
	<td class="table2"><input type="file" name="file" id="file" /></td>
</tr>
<tr>
  <td class="table2" align="center" colspan="4"><input class="button" type="submit" name="insertBtn" value="Submit" class="insertBtn" /></td>
</tr>
</table>
</form> 

<form action="{$smarty.server.PHP_SELF}" name='technician' method='POST'>
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="26"><font style="font-size: 16px"><b>! Employee Available !</b></font></td>
</tr>
<tr>
  <td  class="table1" align='center' ><B>&nbsp;</td>
  <td  class="table1" align='center' ><B>&nbsp;</td>
	<td  class="table1" align='center' ><B>Employee Name</td>
	<td  class="table1" align='center' ><B>Address</td>
	<td  class="table1" align='center' ><B>City</td>
	<td  class="table1" align='center' ><B>Mobile1</td>
	<td  class="table1" align='center' ><B>Mobile2</td>
	<td  class="table1" align='center' ><B>Phone</td>
	<td  class="table1" align='center' ><B>Email</td>
	<td  class="table1" align='center' ><B>image</td>
</tr>
  {section name="sec1" loop=$technicianIdDetailArray}
<tr>
  <td class="table2" align="center">
    <a href="technician.php?technicianId={$technicianIdDetailArray[sec1].technicianId}" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
  </td>
  <td class="table2" align="center">  
	  <a href="technicianDelete.php?technicianId={$technicianIdDetailArray[sec1].technicianId}" class="link" onclick="return confirm('Are You Sure?');"><img src="./images/deleteIcon.png" border="0" width="15" height="15"></a>
  </td>
  <td class="table2" align="left">{$technicianIdDetailArray[sec1].technicianName}</td>
  <td class="table2" align="left">{$technicianIdDetailArray[sec1].address}</td>
  <td class="table2" align="left">{$technicianIdDetailArray[sec1].city}</td>
  <td class="table2" align="right">{$technicianIdDetailArray[sec1].mobile1}</td>
  <td class="table2" align="right">{$technicianIdDetailArray[sec1].mobile2}</td>
  <td class="table2" align="right">{$technicianIdDetailArray[sec1].phone}</td>
  <td class="table2" align="left">{$technicianIdDetailArray[sec1].email}</td>
  {if $technicianIdDetailArray[sec1].image == ""}
  <td class="table2" align="left">&nbsp;</td>
  {else}
  <td class="table2" align="left"  id="imgtooltip"><img src="./upload/{$technicianIdDetailArray[sec1].image}" height="20" width="20">
  	<span><img src="./upload/{$technicianIdDetailArray[sec1].image}" height="150" width="150"></span></td>
  {/if}
</tr>
{/section}
</table>
</form>
{include file="footer.tpl"}